// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import appVue from './App'
import router from './router/index.js'

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#indexApp',//这里取的是html里的id=indexApp
  router:router,//这里可以写router或者router:router//router模块
  components: { appVue },
  template: '<app-vue></app-vue>'//<appVue/> 或者<app-vue/>都可以
})
/*
 main.js自动注入到了index.html里，同时main.js也把App.vue组件的内容引入到index.html里了,App的代码块就是<app-vue/>
 * */